cmake_minimum_required(VERSION 3.5.1)
project(TESTCMAKEDIR)

aux_source_directory(. DIRSRCS)

include_directories(./ ./dirA ./dirB ./dirB/dirC)

add_subdirectory(dirA)
add_subdirectory(dirB)

add_executable(TESTCMAKEDIR ${DIRSRCS})
target_link_libraries(TESTCMAKEDIR dirA dirB dirC)
